<?php echo $sf_user->getAttribute('restaurant_header') ?>

<!--p class="logobg_small"></p-->
<table>
    <tr>
        <!-- left column -->
        <td valign="top">
            <table>
                <tr>
                	<td colspan="2">
	                    <div class="ui-widget-header ui-corner-all yvo-console-header">
							<div class="ui-state-default yvo-widget-header">
								<?php echo __('Date') ?>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td><?php echo __('Date') ?>
						<br />
						<div type="button" 
	                        		id="reservation_guest_specialdateblock_btn"
	                        		class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" 
	                        		role="button" 
	                        		aria-disabled="false"
	                        		title="<?php echo __('Click to show or hide the special dates') ?>"
	                        		>
	                        	
	                        	<span class="ui-button-text  yvo-smalltext">&nbsp;&nbsp;<?php echo __('special dates'); ?></span>
	                        	<span class="ui-button-icon-secondary ui-icon ui-icon-circle-triangle-s yvo-button-icon-left"></span>
	                    </div>
                    </td>
                    <td>
                        <input type="text" id="reservation_guest_date"
                               name="reservation_guest[date]"
                               value="<?php echo Util::convertDateServerClient($form['date']->getValue()) ?>" /> *)
                               
                               
                               
                               
                               
                        <?php if ($form['date']->hasError()) echo __($form['date']->getError()->getMessage()) ?>
                        
                     
                        
                        
                    </td>
                
                </tr>

                 
                <tr id="reservation_guest_specialdateblock" class="noshow">
                	<td><?php echo __('Special dates') ?></td>
                	<td>
                		<?php 
                				
                				include_component('globals', 'guestSpecialDates'); 
                		?>
                		
                	</td>
                	
                </tr>
             
                
                <tr>
                    <td><?php echo __('This week') ?></td>
                    <td>
                        <table>
                            <tr>
                                <?php date_default_timezone_set('Europe/Amsterdam') ?>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (1 - date('w')) * 24 * 3600)), 'day' => 'Ma')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (2 - date('w')) * 24 * 3600)), 'day' => 'Di')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (3 - date('w')) * 24 * 3600)), 'day' => 'Wo')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (4 - date('w')) * 24 * 3600)), 'day' => 'Do')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (5 - date('w')) * 24 * 3600)), 'day' => 'Vr')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (6 - date('w')) * 24 * 3600)), 'day' => 'Za')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (7 - date('w')) * 24 * 3600)), 'day' => 'Zo')) ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Next week') ?></td>
                    <td>
                        <table>
                            <tr>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (8 - date('w')) * 24 * 3600)), 'day' => 'Ma')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (9 - date('w')) * 24 * 3600)), 'day' => 'Di')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (10 - date('w')) * 24 * 3600)), 'day' => 'Wo')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (11 - date('w')) * 24 * 3600)), 'day' => 'Do')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (12 - date('w')) * 24 * 3600)), 'day' => 'Vr')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (13 - date('w')) * 24 * 3600)), 'day' => 'Za')) ?></td>
                                <td><?php include_partial('day_button', array('time' => strtotime(date('Y-m-d',time() + (14 - date('w')) * 24 * 3600)), 'day' => 'Zo')) ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                

                <tr>
                    <td><?php echo __('Time') ?></td>
                    <td>
                        <?php echo $form['time_hour']->render() ?> : <?php echo $form['time_minute']->render() ?>
                        
                        <div id="block_time_message" style="<?php if (!$sf_request->getParameter('block_time')) echo 'display: none;' ?>">
                            <?php echo __('You can not book at the current time and date') . ': ' ?>
                            <span id="block_time_reason"></span>
                            <br />
                            <?php echo __('You can contact us by phone') ?>: <?php echo $sf_user->getAttribute('restaurant_phone') ?>
                        </div>
                        <?php if ($form['time_hour']->hasError()) echo __($form['time_hour']->getError()->getMessage()) ?>
                        <?php if ($form['time_minute']->hasError()) echo __($form['time_minute']->getError()->getMessage()) ?>
                    </td>
                </tr>
                <tr>
                	<td>&nbsp;
                	</td>
                
                	<td>
                	<!--  insert time picker here :)  -->
                	
                		<!-- ochtend -->
                        <a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('10'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                10:00
					            </span>
        					</div>
                		</a>
						<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('11'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                11:00
					            </span>
        					</div>
                		</a>
                		<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('12'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                12:00
					            </span>
        					</div>
                		</a>
                		<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('13'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                13:00
					            </span>
        					</div>
                		</a>
                		
                		<span class="yvo-ie7space50">&nbsp;</span>
                		
                		<!-- avond -->
                		<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('17'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                17:00
					            </span>
        					</div>
                		</a>
						<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('18'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                18:00
					            </span>
        					</div>
                		</a>
                		<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('19'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                19:00
					            </span>
        					</div>
                		</a>
                		<a href="#"
                			onclick="event.preventDefault(); $('#reservation_guest_time_hour').val('20'); $('#reservation_guest_time_minute').val('00')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                20:00
					            </span>
        					</div>
                		</a>
                		</td>
                </tr>
                <tr>
                	<td>&nbsp;
                	</td>
                
                	<td>
                		<!-- ochtend -->
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('10'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                10:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('11'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                11:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('12'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					               12:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('13'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					               13:30
					            </span>
        					</div>
                		</a>
                		
                		<span class="yvo-ie7space50">&nbsp;</span>
                		
                		<!-- avond -->
                		
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('17'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                17:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('18'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					                18:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('19'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					               19:30
					            </span>
        					</div>
                		</a>
                		<a onclick="if (event.preventDefault) {event.preventDefault()} else {event.returnValue = false; }; $('#reservation_guest_time_hour').val('20'); $('#reservation_guest_time_minute').val('30')">
                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton  yvo-timebutton" role="button" aria-disabled="false">
					            <span class="ui-button-text yvo-smalltext">
					               20:30
					            </span>
        					</div>
                		</a>
                		<!-- end time picker -->
                		</td>
                	</tr>
      
               
                <tr>
                    <td valign="top"><?php echo __('Number of persons') ?></td>
                    <td>
                        <?php echo $form['person_no']->render() ?> *)
                        <div id="group_menu_message"  class="ui-state-highlight ui-corner-all" style="display: none;"></div>
                        <?php if ($form['person_no']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p>
                                        <span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
										<?php echo __($form['person_no']->getError()->getMessage()) ?>
                                    </p>
				</div>
                            </div>
                        <?php endif ?>
                        <div id="seat_limit_message" class="ui-state-highlight ui-corner-all" style="<?php if (!$sf_request->getParameter('seat_limit')) echo 'display: none;' ?>">
                            <?php echo __('This time is fully booked, please contact us by phone at:') ?> <?php echo $sf_user->getAttribute('restaurant_phone') ?>
                        </div>
                    </td>
                </tr>
                
                <tr>
                    <td><?php echo __('Occasion') ?></td>
                    <td>
                        <?php echo $form['occasion']->render() ?>
                        <?php if ($form['occasion']->hasError()) echo __($form['occasion']->getError()->getMessage()) ?>
                        
                        <?php // FIXME: Crooked implementation of field with suggestions values, change it so that this is placed in the right place utils.js ? ?>
                        <?php // FIXME: Also, the values come from a document, it should come from the database :) ?>
                       
	                    <script type="text/javascript">
							$(document).ready(function(){
							  $("#reservation_guest_occasion").minisuggest({
								 url 		:	"http://<?php echo $_SERVER['HTTP_HOST']; ?>/occasions_init.php",
								 maxresults	:	10,
								 params		:	{type:"occasions"},
								 onselect	:	function(item){
									 //alert("The selected Item Value = "+item.value+" & label = "+item.label);
								 }
							  });
							});
						</script>
                    </td>
                </tr>
                
                <tr id="group_menu_list_tr" <?php if (!Util::is_group_reservation($form['person_no']->getValue())) echo 'style="display:none"' ?>>
                    <td>
                                    <?php echo __('Menu group reservation') ?>
					</td>
					<td>
                                    <?php if ($form['menu_id']->hasError()): ?>
                                        <div class="ui-widget">
                                            <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                                <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                                   <?php echo __($form['menu_id']->getError()->getMessage()) ?>
                                                </p>
                                            </div>
                                        </div>
                                    <?php endif ?>
                                    

                                    <a href="<?php echo url_for('@reservation_show_menus_list') ?>" target="_blank">
				                			<div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton " role="button" aria-disabled="false">
									            <span class="ui-button-text yvo-smalltext">
									               <strong id="show_menu"><?php echo __('Show menus') ?></strong>
									            </span>
				        					</div>
									</a>
<?php //TODO get this list to be nicely vertically aligned ?> 
                                    <div class="reservation_group_menu_div ui-corner-all ">
                                        <?php echo $form['menu_id']->render() ?>
                                    </div>  
                                    
                    </td>
                </tr>
                
                <tr>
                	
                	<td>
                		<div type="button" 
                        		id="reservation_guest_specialrequestsblock_btn"
                        		class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-secondary" 
                        		role="button" 
                        		aria-disabled="false">
                        	<span class="ui-button-text  yvo-smalltext">&nbsp;&nbsp;<?php echo __('special requests'); ?></span>
                        	<span class="ui-button-icon-primary ui-icon ui-icon-circle-triangle-s yvo-button-icon-left"></span>
                        	
                        </div>
                	</td>
                
                </tr>
                
                <!--  begin special requests -->
                
                <tr id="reservation_guest_dietrequestblock" class="noshow" >
                    <td><?php echo __('Diet observations') ?></td>
                	</td>
                    <td>
                        <?php echo $form['comments_diet']->render(array('class' => 'reservation_diet_comments')) ?>
                        <?php if ($form['comments_diet']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['comments_diet']->getError()->getMessage()) ?>
                                    </p>
								</div>
                            </div>
						<?php endif ?>
                    </td>
                </tr>
                <tr id="reservation_guest_menurequestblock" class="noshow>
                    <td><?php echo __('Special menu') ?></td>
					</td>

                    <td>
                        <?php echo $form['comments_general']->render(array('class' => 'reservation_general_comments')) ?>
                        <?php if ($form['comments_general']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['comments_general']->getError()->getMessage()) ?>
                                    </p>
				</div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                
                
                
                <!--  end special requests -->
                
                <tr>
                    <td><?php echo __('Salutation') ?></td>
                    <td>
                        <table>
                            <tr>
                                <td><?php echo $form['salutation']->render() ?></td>
                                <td> *)
                                <?php if ($form['salutation']->hasError()): ?>
                                    <div class="ui-widget yvo-inlineblock">
                                        <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                            <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                            <?php echo __($form['salutation']->getError()->getMessage()) ?>
                                            </p>
									</div>
				                                    </div>
								<?php endif ?>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Last name') ?></td>
                    <td>
                        <?php echo $form['name_last']->render() ?> *)
                        <?php if ($form['name_last']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                        <?php echo __($form['name_last']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('First name') ?></td>
                    <td>
                        <?php echo $form['name_first']->render() ?>
                        <?php if ($form['name_first']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                        <?php echo __($form['name_first']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Company name') ?></td>
                    <td>
                        <?php echo $form['name_company']->render() ?>
                        <?php if ($form['name_company']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['name_company']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Address') ?></td>
                    <td>
                        <?php echo $form['address']->render(array('class' => 'reservation_address')) ?>
                        <?php if ($form['address']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['address']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><?php echo __('Phone') ?></td>
                    <td>
                        <?php echo $form['phone']->render() ?> *)
                        <?php if ($form['phone']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['phone']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                        <br />(<?php echo __('During office hours') ?>)</td>
                </tr>
                <tr>
                    <td><?php echo __('Mobile') ?></td>
                    <td>
                        <?php echo $form['mobile']->render() ?>
                        <?php if ($form['mobile']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p>
                                        <span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                        <?php echo __($form['mobile']->getError()->getMessage()) ?>
                                    </p>
                                </div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top"><?php echo __('Email') ?></td>
                    <td>
                        <?php echo $form['email']->render() ?> *)
                        <?php if ($form['email']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['email']->getError()->getMessage()) ?>
                                    </p>
				</div>
                            </div>
                        <?php endif ?>
                        <br /><?php echo __('For confirmation of reservation') ?>
                    </td>
                </tr>
            </table>
        </td>

<!-- the empty column in the middle -->
        <td width="50">&nbsp;</td>

<!-- right column 
        <td valign="top">
            <table>
                <tr>
                    <td><?php echo __('Diet observations') ?></td>
                </tr>
                <tr>
                    <td>
                        <?php echo $form['comments_diet']->render(array('class' => 'reservation_diet_comments')) ?>
                        <?php if ($form['comments_diet']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['comments_diet']->getError()->getMessage()) ?>
                                    </p>
							</div>
			                            </div>
						<?php endif ?>
                    </td>
                </tr>
                <tr>
                    <td><?php echo __('Special menu') ?></td>
                </tr>
                <tr>
                    <td>
                        <?php echo $form['comments_general']->render(array('class' => 'reservation_general_comments')) ?>
                        <?php if ($form['comments_general']->hasError()): ?>
                            <div class="ui-widget yvo-inlineblock">
                                <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                    <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                       <?php echo __($form['comments_general']->getError()->getMessage()) ?>
                                    </p>
				</div>
                            </div>
                        <?php endif ?>
                    </td>
                </tr>
-->
                <!-- tr id="group_menu_list_tr" <?php if (!Util::is_group_reservation($form['person_no']->getValue())) echo 'style="display:none"' ?>>
                    <td>
                        <table width="100%">
                            <tr>
                                <td>
                                    <?php echo __('Menu group reservation') ?>
                                    <?php if ($form['menu_id']->hasError()): ?>
                                        <div class="ui-widget yvo-inlineblock">
                                            <div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
                                                <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
                                                   <?php echo __($form['menu_id']->getError()->getMessage()) ?>
                                                </p>
                                            </div>
                                        </div>
                                    <?php endif ?>
                                </td>
                                <td align="right">
                                    <a href="<?php echo url_for('@reservation_show_menus_list') ?>" target="_blank">
                                        <strong id="show_menu"><?php echo __('Show menus') ?></strong>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div class="reservation_group_menu_div">
                                        <?php echo $form['menu_id']->render() ?>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr -->
            </table>
        </td>
    </tr>
</table>